import 'package:flutter/material.dart';

class InputSimpleWidget extends StatelessWidget {
  final String hintText;
  final TextEditingController contro;
  final EdgeInsets margin;

  Border border;

  InputSimpleWidget({this.hintText, this.contro, this.margin, this.border});

  @override
  Widget build(BuildContext context) {
    if (border == null) {
      border = Border(bottom: BorderSide(width: 1, color: Color(0xffefefef)));
    }
    // TODO: implement build
    return Container(
      width: double.infinity,
      margin: margin,
      padding: EdgeInsets.only(right: 16),
      decoration: BoxDecoration(color: Colors.white, border: border),
      child: TextField(
          controller: contro,
          decoration: InputDecoration(
              hintText: hintText,
              hintStyle: TextStyle(fontSize: 16),
              border: InputBorder.none,
              contentPadding: EdgeInsets.only(top: 15, bottom: 15))),
    );
  }
}
